﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Intelligent.OTC.Common;
using System.Web;

namespace Intelligent.OTC.Domain.DataModel
{
    public partial class MailTmp : IAggregateRoot
    {
        public List<string> GetRelatedCustomers()
        {
            List<string> cus = new List<string>();
            if (this.CustomerMails != null)
            {
                cus.AddRange(this.CustomerMails.Select(cm => cm.CustomerNum));
            }
            return cus;
        }
            
    }
}